package com.ruoyi.stock.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.stock.mapper.QwAbnormalactionMapper;
import com.ruoyi.stock.domain.QwAbnormalaction;
import com.ruoyi.stock.service.IQwAbnormalactionService;

/**
 * 异动记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-08-16
 */
@Service
public class QwAbnormalactionServiceImpl implements IQwAbnormalactionService 
{
    @Autowired
    private QwAbnormalactionMapper qwAbnormalactionMapper;

    /**
     * 查询异动记录
     * 
     * @param abnormalactionId 异动记录主键
     * @return 异动记录
     */
    @Override
    public QwAbnormalaction selectQwAbnormalactionByAbnormalactionId(Long abnormalactionId)
    {
        return qwAbnormalactionMapper.selectQwAbnormalactionByAbnormalactionId(abnormalactionId);
    }

    /**
     * 查询异动记录列表
     * 
     * @param qwAbnormalaction 异动记录
     * @return 异动记录
     */
    @Override
    public List<QwAbnormalaction> selectQwAbnormalactionList(QwAbnormalaction qwAbnormalaction)
    {
        return qwAbnormalactionMapper.selectQwAbnormalactionList(qwAbnormalaction);
    }

    /**
     * 新增异动记录
     * 
     * @param qwAbnormalaction 异动记录
     * @return 结果
     */
    @Override
    public int insertQwAbnormalaction(QwAbnormalaction qwAbnormalaction)
    {
        return qwAbnormalactionMapper.insertQwAbnormalaction(qwAbnormalaction);
    }

    /**
     * 修改异动记录
     * 
     * @param qwAbnormalaction 异动记录
     * @return 结果
     */
    @Override
    public int updateQwAbnormalaction(QwAbnormalaction qwAbnormalaction)
    {
        return qwAbnormalactionMapper.updateQwAbnormalaction(qwAbnormalaction);
    }

    /**
     * 批量删除异动记录
     * 
     * @param abnormalactionIds 需要删除的异动记录主键
     * @return 结果
     */
    @Override
    public int deleteQwAbnormalactionByAbnormalactionIds(Long[] abnormalactionIds)
    {
        return qwAbnormalactionMapper.deleteQwAbnormalactionByAbnormalactionIds(abnormalactionIds);
    }

    /**
     * 删除异动记录信息
     * 
     * @param abnormalactionId 异动记录主键
     * @return 结果
     */
    @Override
    public int deleteQwAbnormalactionByAbnormalactionId(Long abnormalactionId)
    {
        return qwAbnormalactionMapper.deleteQwAbnormalactionByAbnormalactionId(abnormalactionId);
    }
}
